package User;
import java.sql.Date;

public class Book {
    private String bookname;
    private String writer;
    private Date addtime;
    private String condition;
    public Book(String title, String author, Date addtime, String condition) {
        this.bookname = title;
        this.writer = author;
        this.addtime = addtime;
        this.condition = condition;
    }
    public String getTitle() {
        return bookname;
    }
    public void setTitle(String title) {
        this.bookname = title;
    }
    public String getWriter() {
        return writer;
    }
    public void setWriter(String writer) {
        this.writer = writer;
    }
    public Date getAvailableCopies() {
        return addtime;
    }
    public String toString(){
        return "Title:"+bookname+",Author:"+ writer +",addtime:"+addtime+",condition:"+condition;
    }


}

